﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Huirui.Cavan.Domain.MainBoundedContext.ReportModule;
using Spring.Data.Generic;

namespace Huirui.Cavan.Infrastructure.Data.MainBoundedContext.StockModule
{
    public class StockByWareHouseReportMapper : IRowMapper<StockByWareHouseReport>
    {
        #region IRowMapper<StockByWareHouseReport> 成员

        public StockByWareHouseReport MapRow(System.Data.IDataReader reader, int rowNum)
        {
            StockByWareHouseReport report = new StockByWareHouseReport();
            report.WareHouseCode = Convert.ToString(reader["WareHouseCode"]);
            report.StockCode = Convert.ToString(reader["StockCode"]);
            report.LeftNumber = Convert.ToDecimal(reader["LeftNumber"]);

            return report;
        }

        #endregion
    }
}
